package com.lcm.basic.p9;

/**
 * @author Coder-lcm
 * @date 2021/4/4
 */
public class RuntimeDemo {
    public static void main(String[] args) {
        Runtime runtime = Runtime.getRuntime();
        System.out.println("处理器数量： " + runtime.availableProcessors());
        System.out.println("空闲内存数： " + runtime.freeMemory());
        System.out.println("总内存数： " + runtime.totalMemory());
        System.out.println("最大可用内存数： " + runtime.maxMemory());
    }
}
